package homework.homework01_1;

interface Inter{
    int[] show(int len);
}
public class Test {
    public static void main(String[] args) {
        Inter i = len-> new int[len];

        String str = "(010)-62661617";
        System.out.println(str.matches("[0-9(\\-)]*\\d*"));

        /*method(i);//错误 缺少第二个参数
        method(int[]::new); //错误 缺少第二个参数*/
    }

    public static void method(Inter i,int len){
        i.show(len);
    }
}
